#pragma once

#include <string>

#include <sys/types.h>
#include <sys/stat.h>


namespace evm { namespace os {

using namespace std;

uid_t getuid(void);

uid_t geteuid(void);

void chown(const string& path, uid_t owner = -1, gid_t group = -1);

/* Set the access and modified times to the current time. */
void utime(const string& path);

using stat_type = struct stat;
stat_type stat(const string& path);

double mtime(const string& path);
double atime(const string& path);
double ctime(const string& path);

}}
